/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ritesh;
import com.itextpdf.text.Document;
import com.itextpdf.text.Paragraph;
import com.itextpdf.text.pdf.PdfWriter;
import java.io.*;
/**
 *
 * @author RITESH
 */
public class HelloWordPDF {
     public static void main(String arg[])throws Exception
      {
       Document document=new Document();
       PdfWriter.getInstance(document,new FileOutputStream("hello.pdf"));
      document.open();
      document.add(new Paragraph("Hello Pdf This is Ritesh"));
      document.close();
      }

}
